[slug].vue 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <script lang='ts' setup>
  2. import { useCommonStore } from '@/stores/modules/common'
  3. import { Condition } from '@/enums/const-enums'
  4. const commonStore = useCommonStore()
  5. const list = [
  6. {
  7. id: '1930872642297643010',
  8. title: 'Stationary & Office Supplies',
  9. subhead: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  10. coverImg: 'https://picsum.photos/560/310',
  11. coverAlt: 'https://picsum.photos/560/310',
  12. pdf: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  13. viewPdf: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  14. // pdfUrl: 'https://static.ejetselection.com/temp/导入模板2222_1736660213488.xlsx',
  15. downloadCondition: Condition.DOWNLOAD, // 下载条件 1是登录后下载 2是登录后申请下载
  16. blogSlug: 'stationary-office-supplies',
  17. },
  18. {
  19. id: '1930872642297643010',
  20. title: 'Stationary & Office Supplies',
  21. subhead: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  22. coverImg: 'https://picsum.photos/560/310',
  23. coverAlt: 'https://picsum.photos/560/310',
  24. pdf: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  25. viewPdf: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  26. // pdfUrl: 'https://static.ejetselection.com/temp/导入模板2222_1736660213488.xlsx',
  27. downloadCondition: Condition.REQUEST, // 下载条件 1是登录后下载 2是登录后申请下载
  28. blogSlug: 'stationary-office-supplies',
  29. },
  30. ]
  31. const { openLoginAndDownloadModal } = useLoginAndDownLoadModal()
  32. async function clickLoginAndDownload(item: any) {
  33. try {
  34. commonStore.setDownloadCatalog(item)
  35. const { status } = await openLoginAndDownloadModal()
  36. if (status)
  37. location.reload()
  38. }
  39. catch (error) {
  40. console.log(error)
  41. }
  42. }
  43. </script>
  44. <template>
  45. <div>
  46. <div class=" bg-#0F0820">
  47. <div class="header w-1200-auto text-center flex items-center justify-center h-600px bg-no-repeat bg-center" style="background-image: url('https://picsum.photos/420/420')">
  48. <h1 class="text-58px fw-800 text-#fff ls-2 custom-title-font">
  49. STATIONARY & OFFICE SUPPLIES
  50. </h1>
  51. </div>
  52. </div>
  53. <div class="py-120px w-1200-auto text-center">
  54. <h2 class="text-36px fw-800 text-#333 !mb-20px custom-title-font">
  55. Our Latest Product <span class="custom-title-bg04">Catalogs</span>
  56. </h2>
  57. <div class="text-#999 text-22px mb-40px">
  58. Discover bestsellers and fresh arrivals tailored to your niche.
  59. </div>
  60. <div class="grid grid-cols-2 gap-64px text-left">
  61. <div v-for="item in list" :key="item.id">
  62. <business-categories-comp-item :item="item" @select="clickLoginAndDownload" />
  63. </div>
  64. </div>
  65. </div>
  66. <common-block-catalogs />
  67. <common-block-blog class="!pb-0" />
  68. <AppFooter />
  69. </div>
  70. </template>
  71. <style lang='less' scoped>
  72. .header{
  73. background-position: 50% 75%;
  74. }
  75. </style>